/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package justdoit.controller;

import javax.swing.ImageIcon;
import java.net.URL;

/**
 *
 * @author dilshod
 */
public class IconManager {

    private final static String iconPath = "/justdoit/resources/icons/";

    public static ImageIcon getIcon(String iconName) {

        URL iconURL = IconManager.class.getResource(iconPath + iconName);
        if (iconURL != null) {
            return new ImageIcon(iconURL);
        } else {
            return null;
        }

    }
}
